import instance from '@/utils/axios.js';


// 获取用户详细信息
function getUserInfo() {
    return instance({
        url:'/admin/user/detail',
        method:'get'
    })
}

export {getUserInfo}

// 获取折线图数据
function getCurve() {
    return instance({
        url:'/admin/data/article',
        method:'get'
    })
}

export {getCurve}

// 饼状图
function getPie() {
    return instance({
        url:'/admin/data/category',
        method:'get'
    })
}

export {getPie}